# Install dependencies
$ sudo apt install make gcc git libsecret-1-0 libsecret-1-dev libglib2.0-dev
# Compile binary
$ sudo make --directory=/usr/share/doc/git/contrib/credential/libsecret
# Configure git to use binary as credential storageDiscover gists
| #!/bin/bash | |
| # Claude Code custom status line — two lines: | |
| # Line 1: folder + full path + git branch (if in a repo) + [model ctx:%] (left) | |
| # Line 2: 5-hour and 7-day usage with color-coded bars + reset countdowns (right-aligned) | |
| # | |
| # Reads the JSON Claude Code pipes to it on stdin. Requires: jq, GNU sed, wc, date. | |
| # Right-alignment uses the COLUMNS env var (Claude Code sets it on v2.1.153+). | |
| # | |
| # Install: | |
| # 1. Save this file (e.g. ~/.claude/statusline.sh) |
| // This code is based on https://en.wikipedia.org/wiki/HSL_and_HSV | |
| // Free to use for any purpose. No attribution needed. | |
| function rgbToHsl(r, g, b) { | |
| r /= 255; g /= 255; b /= 255; | |
| let max = Math.max(r, g, b); | |
| let min = Math.min(r, g, b); | |
| let d = max - min; | |
| let h; | |
| if (d === 0) h = 0; |
A pattern for building personal knowledge bases using LLMs.
This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.
Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.
| [ | |
| { | |
| "title": "Why do freelancers ghost projects after partial payments without accountability systems?", | |
| "description": "Businesses hiring ad-hoc freelancers through informal channels experience high churn rates when workers disappear mid-project after receiving partial payments, leaving companies with incomplete deliverables and no legal framework to recover damages or enforce completion.", | |
| "severity": "8", | |
| "tam": "7", | |
| "whitespace": "7.5", | |
| "frequency": "7", | |
| "itch": "76" | |
| }, |
A CONTAINER is a running environment for an IMAGE. CONTAINER has a port which makes it possible to talk to it. A CONTAINER has a virtual file system.
Everything in Docker Hub are IMAGES.
Containers have names (easy to remember) and ID’s. Both can be used to reference it.
When you don’t specify a version of an image, you get the latest one.
| const signal = F=>(f,G=F)=>F=f?_=>f(G?.()):F?.(); // 33 bytes | |
| // Usage | |
| const foo = signal(); | |
| // subscribe (callback must return a nullish value) | |
| foo(() => console.log("subscriber #1")); | |
| foo(() => console.log("subscriber #2")); | |
| // fire and reset |
| #!/usr/bin/env bash | |
| # Download VMware Fusion for macOS without a Broadcom account. | |
| # | |
| # This script allows you to download various versions of VMware Fusion | |
| # from Broadcom's Cloudflare CDN (versions 8.0.0 to 13.6.3) | |
| # or from the archive.org VMware Workstation archive (versions 8.x.x+). | |
| # | |
| # Options: | |
| # -k: Keep the downloaded file compressed (Cloudflare only; ignored for archive.org). |